<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F().empty演示</title>
<style type="text/css">
.box{width:300px; height:100px; background-color:red;}
.box div{background-color:blue;}
</style>
<script type="text/javascript" src="../../1st.js"></script>
</head>
<body>
<div id="box" class="box">
	<div>I am firstChild</div>
	<div>I am secondChild</div>
</div>

<script type="text/javascript">
var box = F("box");
alert(box.node.childNodes.length);
box.empty(1);
alert(box.node.childNodes.length);
box.empty();
alert(box.node.childNodes.length);
</script>
</body>
</html>